<extend name="Public/base" />
<block name="content">
<style type= "text/css">
#info_td{
     word-break:break-all;
     width:80%;
}
</style>
<div id="content">
	<div id="content-header">
		<div id="breadcrumb">
			<a class="tip-bottom" href="{:U('Index/index')}" data-original-title="首页"><i class="icon-home"></i> 首页</a>
			<a class="tip-bottom" href="{:U('Order/index')}" data-original-title="">{$meta_title_c}</a> 
			<a class="current" href="{$post_url}">{$meta_title}</a>
		</div>
	</div>
	<div class="container-fluid">
		<br/>
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-title">
						<span class="icon"> <i class="icon-briefcase"></i> </span>
            			<h5>订单编号</h5>
            		</div>
            		<div class="widget-content">
		                <table class="table table-bordered table-invoice">
		                  <tbody>
		                    <tr>
		                      <td><strong>活动</strong></td>
		                      <td><strong>{$list.activity_id|getActivityName}</strong></td>
		                      <td><strong>订单状态</strong></td>
		                      <td><strong><eq name="list.order_status" value="0">{$Think.config.ORDER_STATUS.0}<else/>{$list.order_status|get_type_title}</eq></strong></td>
		                    </tr>
		                    <tr>
		                      <td><strong>订单号:</strong></td>
		                      <td><strong>{$list.order_id}</strong></td>
		                      <td><strong>纸质订单号:</strong></td>
		                      <td><strong>{$list.paper_order}</strong></td>
		                    </tr>
		                    <tr>
		                      <td><strong>订单类型:</strong></td>
		                      <td><strong>{$list.order_type|get_order_type_title}</strong></td>
		                      <td><strong>下单时间:</strong></td>
		                      <td><strong>{$list.create_time|time_format}</strong></td>
		                    </tr>
		                  </tbody>
		                </table>
					</div>
				</div>
			</div>
		</div>
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-title">
						<span class="icon"> <i class="icon-credit-card"></i> </span>
            			<h5>订单信息</h5>
            		</div>
            		<div class="widget-content">
            			<table class="table table-bordered table-invoice">
		                  <tbody>
		                    <tr>
		                      <td colspan="2"><strong>客户信息</strong></td>
		                    </tr>
		                    <tr>
		                      <td>手机号：</td>
		                      <td>{$list.customer_id|getCustomerName}</td>
		                    </tr>
		                  </tbody>
		                </table>
		                <table class="table table-bordered table-invoice">
		                  <tbody>
		                    <tr>
		                      <td colspan="2"><strong>订购信息</strong></td>
		                    </tr>
		                    <tr>
		                      <td width="40px">商户：</td>
		                      <td>{$list.merchant_id|getMerchantName}</td>
		                    </tr>
		                    <tr>  
		                      <td>店铺：</td>
		                      <td>{$list.shop_name|htmlspecialchars}</td>
		                    </tr>
		                    <tr>
		                      <td>品类：</td>
		                      <td>{$list.conf_category_id|getConfCategoryName}</td>
		                    </tr>
		                    <notempty name="snap_info">
		                    <tr>
		                      <td width="20%">快照信息：</td>
		                      <td id='snap_info_td'>
		                      	商品名称：{$snap_info.goods_name|htmlspecialchars}<br/>
		                      	商品副标题：{$snap_info.goods_title|htmlspecialchars}<br/>
		                      	商品简介：{$snap_info.goods_introduction|htmlspecialchars}<br/>
		                      	市场价格：{$snap_info.market_price|htmlspecialchars}<br/>
		                      	商城价格：{$snap_info.shop_price|htmlspecialchars}<br/>
		                      	促销价格：{$snap_info.promotion_price|htmlspecialchars}<br/>
		                      	定金：{$snap_info.goods_deposit|htmlspecialchars}<br/>
		                      	商品类型：{$snap_info.goods_type|get_goods_type_title}<br/>
		                      	创建时间：{$snap_info.create_time|time_format}<br/>
		                      </td>
		                    </tr>
		                    </notempty>
		                    <if condition="$list['tid'] neq ''">
		                    <tr>
		                      <td>备注：</td>
		                      <td id='info_td'>
		                      	ID:{$list.tid|htmlspecialchars}<br/>
		                      	标题：{$list.goods|htmlspecialchars}<br/>
		                      	促销标题：{$list.title|htmlspecialchars}<br/>
		                      	市场价：{$list.price|htmlspecialchars}<br/>
		                      	活动价：{$list.saleprice|htmlspecialchars}<br/>
		                      </td>
		                    </tr>
		                    </if>
		                  </tbody>
		                </table>
		                <table class="table table-bordered table-invoice">
		                  <tbody>  
		                    <tr>
		                      <td><strong>订单金额</strong></td>
		                      <td>{$list.order_amount}</td>
		                      <td><strong>总支付金额</strong></td>
		                      <td>{$list.order_pay_amount}</td>
		                      <td><strong>总退款金额</strong></td>
		                      <td>{$list.order_refund_amount}</td>
		                    </tr>
		                  </tbody>
		                </table>
            		</div>
				</div>
			</div>
		</div>
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-title">
						<span class="icon"> <i class="icon-reorder"></i> </span>
            			<h5>操作日志</h5>
            		</div>
            		<div class="widget-content">
            		    <table class="table table-bordered table-invoice">
		                  <tbody>
		                  	<notempty name="_list">
		                  		<volist name="_list" id="vo">
				                    <tr>
				                      <td>{$vo.create_time|time_format}</td>
				                      <td>纸质订单号：
										<if condition="(($list.order_type eq 2) and ($vo.log_type lt 3)) or ($list.paper_order eq 0)">-
									    <else />{$list.paper_order}</if>
				                      </td>
				                      <td><eq name="vo.log_type" value="0">{$Think.config.ORDER_STATUS.0}<else/>{$vo.log_type|get_type_title}</eq></td>
				                      <td><eq name="vo.pay_type" value="0">-<else/>{$vo.pay_type|get_pay_title}</eq></td>
				                      <td><eq name="vo.money" value="0">-<else/>金额：{$vo.money}</eq></td>
				                      <td>操作人：<eq name="vo.log_type" value="5">{$vo.uid|getMerchantName}<else/>{$vo.uid|getUserName}</eq></td>
				                    </tr>
				                </volist>
	                    	<else/>
	                    		<tr>
				                	<td>暂无日志记录!</td>
				                </tr>
	                    	</notempty>
		                  </tbody>
		                </table>
            		</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
//导航高亮
highlight_subnav("{:U('Order/index')}");
</script>
</block>